package org.mics.enduser.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 登陆对象
 * @author mics
 * @date 2020年6月10日
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "账号密码登录请求")
public class LoginRequest {

    @Schema(description = "登录账号（必填）",required = true)
    @Size(max = 32, message = "账号不能超过32位")
    @NotBlank(message = "账号不能为空")
    private String account;

    @Schema(description = "登录密码（必填）",required = true)
    @Size(max = 32, message = "登录密码不能超过32位")
    @NotBlank(message = "登录密码不能为空")
    private String password;
    
    @Schema(description = "登录标记")
    private Integer flag;
    
}
